<%@ page contentType="application/x-javascript; charset=utf-8" pageEncoding="utf-8" session="false"%><%request.setCharacterEncoding("utf-8");response.setHeader("Pragma","No-cache");//response.setHeader("Cache-Control","no-cache");response.setDateHeader("Expires", 0);
/**
 * this file is used to get the jsi class files
 * @author: DSONet (dsonet@msn.com)
 * @version $Id: index.jsp 44 2008-06-22 17:16:58Z dsonet@gmail.com $
 */
String path = request.getParameter("path");
if(path == null){return;}
String currURI = request.getRequestURI();
String classHome = application.getRealPath(currURI.substring(request.getContextPath().length(), currURI.lastIndexOf("/") + 1)) + "/";
StringBuilder sb = new StringBuilder();
java.io.BufferedReader reader = null;
java.io.File file = new java.io.File(classHome + "/" + path);
try {
	reader = new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(file), "utf-8"));
	int bufferSize = 8192, size = -1;
	char[] buffer = new char[bufferSize];
	while ((size = reader.read(buffer)) != -1) {
		sb.append(buffer, 0, size);
	}
}catch (java.io.IOException e) {
	sb.append("/*read file "+ file.toString() + " error*/");
}finally {
	if (reader != null){
		try {
			reader.close();
		} catch (java.io.IOException e) {
		}
	}
}
int pos = path.lastIndexOf('/');
out.write("$JSI.preload('" + path.substring(0,pos).replace('/', '.') + "','" + path.substring(pos + 1) + "',function(){eval(this.varText);" + sb.toString() + "\n})");
%>